<template>
  <div class="search">
    <el-form
      @submit.native.prevent="submit"
      inline
      label-width="120"
      size="small"
    >
      <el-form-item label="搜索：">
        <el-input
          v-model="form.searchCondition"
          placeholder="用户姓名/联系电话"
          clearable
        ></el-input>
      </el-form-item>
      <el-form-item label="角色：">
        <selector type="roleTypes" filterable clearable v-model="form.roleId" />
      </el-form-item>
      <slot></slot>
    </el-form>
  </div>
</template>

<script>
import vModelMixins from "@/plugins/mixins/vModelMixins";
export default {
  mixins: [vModelMixins],
  data() {
    return {};
  },
  methods: {
    submit() {
      this.$emit("submit");
    }
  }
};
</script>
